<?php
require_once('DB_Abstraction_AbstractFactory.php');
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
Struttura
SQL
Cerca
Query da esempio
Esporta
Importa
Operazioni
Privilegi
Tracking
Designer
Non ci sono tabelle nel database

 Crea una nuova tabella nel database web2announcements
Nome:  Numero di colonne:  

 
Crea tabella
close
 * Description of DB
 *
 * @author Fabio
 */
require_once ('DB_Abstraction_Factory.php');
class DB 
{
    
    private function dbConnect()
    {
        $this->abstractdbfactory = DB_Abstraction_Factory();
        $this->factory = &$abstractdbfactory::getFactory();
        $this->db = $this->factory.createInstance();
    }
    public function getAuthenticationInfo($user, $md5Psw)
    {
        $this->dbConnect();
        $query = "SELECT * FROM admin_web_users WHERE user_name=$user AND password=$md5Psw";
        $result_login = mysql_query($query);
        return $result_login;        
    }
    
    private $abstractdbfactory;
    private $factory;
    private $db;
}
$db = new DB();
?>
